<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="promise.js"></script>
</head>
<body>
<script>
    let p = new Promise(((resolve, reject) => {
        resolve('ok')
    }))
    p.then(value => {
        console.log(value)
    },reason => {
        console.log(reason)
    })
</script>
</body>
</html>
